package cn.anlucky.apiadmin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.anlucky.apiadmin.pojo.UserRole;
import cn.anlucky.apiadmin.service.UserRoleService;
import cn.anlucky.apiadmin.mapper.UserRoleMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 95135
* @description 针对表【user_role】的数据库操作Service实现
* @createDate 2024-04-17 14:14:30
*/
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole>
    implements UserRoleService{

    @Override
    public List<String> getUserRoleByUserId(Integer userId) {
        List<String> userRoleList = baseMapper.getUserRoleByUserId(userId);
        return userRoleList;
    }
}




